import * as API from './index'


//获取订单列表
export const getOrders = (params)=>{
    return API.GET('/api/v1/admin/orders',params)
}

//修改订单
export const updateOrder = (params)=>{
    return API.PUT('/api/v1/admin/orders/'+params.id,params)
}

//获取订单详情
export const detailOrder = (params) =>{
    return API.GET('/api/v1/admin/orders/'+params)
}

//删除订单分类
export const deleteOrder = (params) =>{
    return API.DELETE('/api/v1/admin/orders/'+params)
}